//
//  Networking.h
//  iCan - iPhone Context-Aware Navigation
//  Carnegie Mellon University - 18-842 Distributed Systems
//
//  Created by Andrew Santell on 3/26/12.
//  Copyright (c) 2012 Andrew Santell. All rights reserved.


#import <Foundation/Foundation.h>

@interface Networking : NSObject <NSStreamDelegate>{
    NSInputStream *inputStream;
    NSOutputStream *outputStream;
    NSString *result;
}

@property (retain, nonatomic) NSInputStream *inputStream;
@property (retain, nonatomic) NSOutputStream *outputStream;
@property (retain, nonatomic) NSString *result;


- (void) initNetworkCommunication: (NSString *) message;
- (void) stream:(NSStream *)theStream handleEvent:(NSStreamEvent)streamEvent;

@end
